package in.srain.cube.views.ptr.demo.request;

import in.srain.cube.request.DefaultRequestProxy;
import in.srain.cube.request.IRequest;
import in.srain.cube.request.IRequestProxy;
import in.srain.cube.request.RequestProxyFactory;

/**
 * process request
 */
public class DemoRequestProxy extends DefaultRequestProxy implements RequestProxyFactory {

    private static DemoRequestProxy sInstance;

    public static DemoRequestProxy getInstance() {
        if (sInstance == null) {
            sInstance = new DemoRequestProxy();
        }
        return sInstance;
    }

    @Override
    public IRequestProxy createProxyForRequest(IRequest request) {
        return getInstance();
    }
}
